import request from '@/config/axios'
const baseUrl = 'http://localhost:3000/dev-api/goods'

// 分页列物资
export const fetchGoodsList = (params: any) => {
  return request.get({ url: `${baseUrl}/list` ,params})
}

// 新增物资
export const fetchPostGoods = (data: any) => {
  return request.post({ url: `${baseUrl}` ,data})
}

// 修改物资信息
export const fetchPutGoods = (data: any) => {
  return request.put({ url: `${baseUrl}` ,data})
}

